<?php if ($this->invitation_list) { foreach($this->invitation_list as $key => $val) { ?>
<li>
	<a href="people/<?php echo $val['user_info']['url_token']; ?>" data-id="<?php echo $val['user_info']['uid']; ?>" class="img"><img src="<?php echo get_avatar_url($val['user_info']['uid'], 'mid'); ?>" alt="" /></a>
	
	<p>
		<?php if ($val['active_status'] == 1) { ?>
		<span class="pull-right"><?php _e('激活成功'); ?></span>
		<?php } else if ($val['active_status'] == -1) { ?>
		<span class="pull-right"><?php _e('邀请已取消'); ?></span>
		<?php } else { ?>
		<span class="pull-right"><?php _e('邀请已发送'); ?></span>
		<?php } ?>
		
		<?php echo $val['invitation_email']; ?>
	</p>
	
	<?php if ($val['active_status'] == 0) { ?>
	<p class="aw-text-color-666">
		<span class="pull-right"><a href="javascript:;" onclick="AWS.ajax_request(G_BASE_URL + '/invitation/ajax/invite_cancel/invitation_id-<?php echo $val['invitation_id']; ?>');"><?php _e('取消邀请'); ?></a> &nbsp; <a href="javascript:;" onclick="AWS.ajax_request(G_BASE_URL + '/invitation/ajax/invite_resend/invitation_id-<?php echo $val['invitation_id']; ?>');" class="btn btn-mini btn-success"><?php _e('重发邀请'); ?></a></span>
		<?php _e('若对方没有收到邀请, 可复制下面的链接通过 QQ 等发送给 TA'); ?>
	</p>
	
	<p>
		<input type="text"  class="form-control" value="<?php echo get_js_url('/account/register/email-' . urlencode($val['invitation_email']) . '__icode-' . $val['invitation_code']); ?>" onfocus="this.select();" />
	</p>
	<?php } ?>
</li>
<?php } } ?>